package com.xxxy.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xxxy.utils.JsonSerializerUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author StevenShen
 * @date 2022/3/21 14:17
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TeacherPaperProgressResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("试卷id")
    private Integer paperId;

    @ApiModelProperty("试卷总进度（曲线）")
    private List<Integer> totalProgress;

    @JsonSerialize(using = JsonSerializerUtils.class)
    @ApiModelProperty("阅卷进度")
    private Double reviewedProgress;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "预计完成时间")
    private Date estimatedTime;

    @ApiModelProperty("试题进度列表（多个柱子）")
    private List<TeacherQuestionProgressResponse> questionProgressList;

}
